package io.bluefw.blueui.dsl;

import java.util.List;
import java.util.Map;

import io.bluefw.blueui.dsl.render.PageWidget;

public class Page {
	private PageWidget widget;
	
	public Page() {
		widget = new PageWidget("page.ftl");
	}
	
	public void setType(String type) {
		widget.setType(type);
	}
	
	public void setEntity(Entity entity) {
		widget.setEntity(entity);
	}
	
	public void setProps(Map<String, Object> props) {
		widget.setProps(props);
	}
	
	public void setToolbar(Toolbar toolbar) {
		this.widget.setToolbar(toolbar);
	}
	
	public void setParts(List<Part> parts) {
		this.widget.setParts(parts);
	}
	
	public StringBuffer render() {
		return widget.render();
	}
}
